package com.itheima.dao;



import com.itheima.pojo.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author itheima
 * @since 2022-05-03
 */
@Mapper
public interface EmployeeMapper {

        int insert(Employee employee);

        Long selesctBynameOrId(@Param("username") String name);

        int update(Employee employee);

        Employee login(@Param("username") String username ,@Param("password") String password);

        List<Employee> selectPage(@Param("skip") Integer skip,
                                  @Param("limit")Integer limit,
                                  @Param("name")String name);

        Long selectTotal(String name);


        Employee selectById(String id);

}
